package com.recipe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.recipe.entity.Dish;
import com.recipe.entity.DishCollect;
import com.recipe.entity.vo.DishVo;

import java.util.List;

/**
 * (DishCollect)表服务接口
 *
 * @author makejava
 * @since 2024-06-18 13:53:50
 */
public interface DishCollectService extends IService<DishCollect> {

    void add(DishCollect dishCollect);

    void synLikedByMessage(DishCollect dishCollect);

    Integer getCollectCount(long dishId);

    void deleteById(DishVo dishVo);

    Boolean isCollected(String dishId, String userId);

    List<Dish> getMyCollect(String username);
}

